<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>后端开发工程师 - 未来科技有限公司 - 职场社交</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #2563eb;
            --primary-light: #eff6ff;
            --primary-dark: #1d4ed8;
            --secondary: #0f766e;
            --dark: #1e293b;
            --gray: #64748b;
            --light-gray: #f1f5f9;
            --border-gray: #cbd5e1;
            --danger: #ef4444;
            --success: #10b981;
        }
        
        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background-color: #f8fafc;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .navbar {
            background-color: white;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .main-container {
            padding: 2rem 0;
        }
        
        .breadcrumb {
            margin-bottom: 1.5rem;
            background-color: transparent;
            padding: 0;
            font-size: 0.9rem;
        }
        
        .breadcrumb-item a {
            color: var(--gray);
            text-decoration: none;
        }
        
        .breadcrumb-item.active {
            color: var(--dark);
        }
        
        .page-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
        }
        
        /* 职位卡片样式 */
        .job-card {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            overflow: hidden;
            margin-bottom: 1.5rem;
        }
        
        .job-header {
            padding: 1.5rem;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .job-company {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        
        .company-logo {
            width: 64px;
            height: 64px;
            border-radius: 8px;
            object-fit: cover;
        }
        
        .company-info h3 {
            font-size: 1.25rem;
            font-weight: 600;
            margin: 0 0 0.25rem 0;
        }
        
        .company-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            color: var(--gray);
            font-size: 0.9rem;
        }
        
        .job-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            margin: 1rem 0;
            color: var(--dark);
        }
        
        .job-meta-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .job-meta-item i {
            color: var(--primary);
        }
        
        .job-actions {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }
        
        .btn-primary {
            background-color: var(--primary);
            border-color: var(--primary);
            color: white;
            padding: 0.6rem 1.5rem;
            border-radius: 6px;
            font-weight: 500;
            transition: all 0.2s;
        }
        
        .btn-primary:hover {
            background-color: var(--primary-dark);
            border-color: var(--primary-dark);
        }
        
        .btn-outline {
            background-color: white;
            border: 1px solid var(--border-gray);
            color: var(--dark);
            padding: 0.6rem 1.5rem;
            border-radius: 6px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.2s;
        }
        
        .btn-outline:hover {
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .job-body {
            padding: 1.5rem;
        }
        
        .section-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--primary-light);
            color: var(--dark);
        }
        
        .job-description {
            margin-bottom: 2rem;
            line-height: 1.8;
        }
        
        .job-description p {
            margin-bottom: 1rem;
        }
        
        .job-description ul {
            margin-bottom: 1rem;
            padding-left: 1.5rem;
        }
        
        .job-description li {
            margin-bottom: 0.5rem;
        }
        
        .job-details {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .detail-item {
            margin-bottom: 0.5rem;
        }
        
        .detail-label {
            font-weight: 500;
            color: var(--gray);
            font-size: 0.9rem;
        }
        
        .detail-value {
            font-size: 0.95rem;
        }
        
        /* 公司信息样式 */
        .company-section {
            margin-bottom: 2rem;
        }
        
        .company-intro {
            display: flex;
            gap: 2rem;
            margin-bottom: 1.5rem;
        }
        
        .company-photos {
            flex: 0 0 300px;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.5rem;
        }
        
        .company-photo {
            width: 100%;
            height: 100px;
            object-fit: cover;
            border-radius: 4px;
        }
        
        .company-desc {
            flex: 1;
        }
        
        .company-desc p {
            margin-bottom: 1rem;
            line-height: 1.8;
        }
        
        .company-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            margin-top: 1rem;
        }
        
        .stat-item {
            text-align: center;
        }
        
        .stat-value {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--primary);
        }
        
        .stat-label {
            font-size: 0.9rem;
            color: var(--gray);
        }
        
        /* 相关职位 */
        .related-jobs {
            margin-bottom: 2rem;
        }
        
        .related-job-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1rem;
        }
        
        .related-job-item {
            padding: 1rem;
            border: 1px solid var(--border-gray);
            border-radius: 6px;
            transition: all 0.2s;
        }
        
        .related-job-item:hover {
            border-color: var(--primary);
            box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
        }
        
        .related-job-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--dark);
            text-decoration: none;
            display: block;
        }
        
        .related-job-title:hover {
            color: var(--primary);
        }
        
        .related-job-meta {
            font-size: 0.85rem;
            color: var(--gray);
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }
        
        /* 留言区样式 */
        .comments-section {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            padding: 1.5rem;
        }
        
        .comments-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .comments-count {
            font-weight: 600;
            color: var(--dark);
        }
        
        .comment-sort {
            color: var(--gray);
            font-size: 0.9rem;
        }
        
        .comment-sort select {
            background: none;
            border: none;
            color: var(--primary);
            cursor: pointer;
            padding: 0;
            font-size: 0.9rem;
        }
        
        .comment-form {
            margin-bottom: 2rem;
        }
        
        .form-group {
            margin-bottom: 1rem;
        }
        
        .comment-input {
            width: 100%;
            padding: 1rem;
            border: 1px solid var(--border-gray);
            border-radius: 6px;
            resize: vertical;
            min-height: 100px;
            font-family: inherit;
            font-size: 0.95rem;
        }
        
        .comment-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }
        
        .form-actions {
            display: flex;
            justify-content: flex-end;
        }
        
        .comment-btn {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0.6rem 1.5rem;
            border-radius: 6px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .comment-btn:hover {
            background-color: var(--primary-dark);
        }
        
        .comments-list {
            margin-bottom: 2rem;
        }
        
        .comment-item {
            padding: 1.25rem 0;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .comment-item:last-child {
            border-bottom: none;
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.75rem;
        }
        
        .comment-author {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .author-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-info {
            display: flex;
            flex-direction: column;
        }
        
        .author-name {
            font-weight: 500;
            font-size: 0.95rem;
        }
        
        .comment-time {
            font-size: 0.8rem;
            color: var(--gray);
        }
        
        .comment-content {
            margin-bottom: 0.75rem;
            line-height: 1.7;
        }
        
        .comment-actions {
            display: flex;
            gap: 1.5rem;
            font-size: 0.9rem;
        }
        
        .comment-action {
            color: var(--gray);
            display: flex;
            align-items: center;
            gap: 0.25rem;
            cursor: pointer;
            transition: color 0.2s;
        }
        
        .comment-action:hover {
            color: var(--primary);
        }
        
        .comment-action.liked {
            color: var(--danger);
        }
        
        /* 回复样式 */
        .replies {
            margin-left: 2.5rem;
            margin-top: 1rem;
        }
        
        .reply-item {
            padding: 0.75rem 0;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .reply-item:last-child {
            border-bottom: none;
        }
        
        .reply-form {
            margin-top: 1rem;
            display: flex;
            gap: 0.75rem;
        }
        
        .reply-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .reply-input-container {
            flex: 1;
        }
        
        .reply-input {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid var(--border-gray);
            border-radius: 6px;
            resize: none;
            min-height: 80px;
            font-family: inherit;
            font-size: 0.9rem;
        }
        
        .reply-actions {
            display: flex;
            justify-content: flex-end;
            gap: 0.75rem;
            margin-top: 0.5rem;
        }
        
        .reply-btn {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0.4rem 1rem;
            border-radius: 4px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .reply-btn:hover {
            background-color: var(--primary-dark);
        }
        
        .cancel-reply {
            background: none;
            border: none;
            color: var(--gray);
            font-size: 0.9rem;
            cursor: pointer;
        }
        
        .cancel-reply:hover {
            color: var(--dark);
        }
        
        /* 分页控件 */
        .pagination-container {
            margin-top: 2rem;
            display: flex;
            justify-content: center;
        }
        
        .pagination {
            display: flex;
            gap: 0.5rem;
        }
        
        .page-btn {
            width: 36px;
            height: 36px;
            border-radius: 6px;
            border: 1px solid var(--border-gray);
            background-color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .page-btn:hover:not(.active):not(.disabled) {
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .page-btn.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .page-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        

        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .job-actions {
                flex-direction: column;
            }
            
            .btn-primary, .btn-outline {
                width: 100%;
                justify-content: center;
            }
            
            .company-intro {
                flex-direction: column;
                gap: 1rem;
            }
            
            .company-photos {
                flex: none;
                width: 100%;
            }
            
            .replies {
                margin-left: 1rem;
            }
            
            .job-meta {
                gap: 1rem;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg py-3">
        <div class="container">
            <a href="#" class="logo">
                <i class="fas fa-briefcase"></i>
                职场社交
            </a>
            
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav ms-auto gap-4">
                    <li class="nav-item"><a href="#" class="nav-link">首页</a></li>
                    <li class="nav-item"><a href="#" class="nav-link active">求职</a></li>
                    <li class="nav-item"><a href="#" class="nav-link">招聘会</a></li>
                    <li class="nav-item"><a href="#" class="nav-link">公司</a></li>
                    <li class="nav-item"><a href="#" class="nav-link">社区</a></li>
                    <li class="nav-item">
                        <a href="#" class="nav-link" title="个人中心">
                            <img src="https://picsum.photos/100/100?random=1" alt="用户头像" class="rounded-circle" style="width: 32px; height: 32px;">
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    
    <div class="container main-container">
        <!-- 面包屑导航 -->
        <nav aria-label="breadcrumb">
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="#">首页</a></li>
                <li class="breadcrumb-item"><a href="#">求职</a></li>
                <li class="breadcrumb-item"><a href="#">互联网/IT</a></li>
                <li class="breadcrumb-item active" aria-current="page">后端开发工程师</li>
            </ol>
        </nav>
        
        <h1 class="page-title">后端开发工程师</h1>
        
        <!-- 职位卡片 -->
        <div class="job-card">
            <div class="job-header">
                <div class="job-company">
                    <img src="https://picsum.photos/200/200?random=20" alt="未来科技有限公司logo" class="company-logo">
                    <div class="company-info">
                        <h3>未来科技有限公司</h3>
                        <div class="company-meta">
                            <span><i class="fas fa-industry"></i> 互联网/IT</span>
                            <span><i class="fas fa-building"></i> 大型企业(500-2000人)</span>
                            <span><i class="fas fa-map-marker-alt"></i> 北京市海淀区</span>
                        </div>
                    </div>
                </div>
                
                <div class="job-meta">
                    <div class="job-meta-item">
                        <i class="fas fa-money-bill-wave"></i>
                        <span>20k-35k·13薪</span>
                    </div>
                    <div class="job-meta-item">
                        <i class="fas fa-map-marker-alt"></i>
                        <span>北京 · 海淀区 · 西二旗</span>
                    </div>
                    <div class="job-meta-item">
                        <i class="fas fa-briefcase"></i>
                        <span>1-3年</span>
                    </div>
                    <div class="job-meta-item">
                        <i class="fas fa-graduation-cap"></i>
                        <span>本科及以上</span>
                    </div>
                    <div class="job-meta-item">
                        <i class="fas fa-clock"></i>
                        <span>发布于 3天前</span>
                    </div>
                </div>
                
                <div class="job-actions">
                    <button class="btn-primary">
                        <i class="fas fa-paper-plane"></i>
                        立即申请
                    </button>
                    <button class="btn-outline" onclick="toggleCollect(this)">
                        <i class="far fa-bookmark"></i>
                        收藏职位
                    </button>
                    <button class="btn-outline">
                        <i class="fas fa-share-alt"></i>
                        分享
                    </button>
                </div>
            </div>
            
            <div class="job-body">
                <div class="job-description">
                    <h2 class="section-title">职位描述</h2>
                    <p>我们正在寻找一位有经验的后端开发工程师加入我们的团队，负责公司核心产品的后端系统设计与开发。如果你对技术充满热情，喜欢挑战，渴望在一个快速成长的团队中发挥自己的才能，那么我们期待你的加入！</p>
                    
                    <h3>主要职责：</h3>
                    <ul>
                        <li>参与产品后端架构设计和代码开发，确保系统的性能和稳定性</li>
                        <li>与产品经理和前端工程师密切合作，理解业务需求并转化为技术实现</li>
                        <li>持续优化现有系统，解决技术难题</li>
                        <li>参与技术方案讨论和评审，推动团队技术进步</li>
                        <li>编写高质量的技术文档</li>
                    </ul>
                    
                    <h3>任职要求：</h3>
                    <ul>
                        <li>本科及以上学历，计算机相关专业，1-3年后端开发经验</li>
                        <li>精通Java语言，熟悉Spring Boot、Spring Cloud等框架</li>
                        <li>熟悉MySQL等关系型数据库，有数据库设计和优化经验</li>
                        <li>了解分布式系统设计原理，有微服务开发经验者优先</li>
                        <li>具备良好的问题分析和解决能力，较强的学习能力和团队协作精神</li>
                    </ul>
                </div>
                
                <div class="job-details">
                    <h2 class="section-title">职位详情</h2>
                    
                    <div class="detail-item">
                        <div class="detail-label">职位类型</div>
                        <div class="detail-value">全职</div>
                    </div>
                    
                    <div class="detail-item">
                        <div class="detail-label">招聘人数</div>
                        <div class="detail-value">3人</div>
                    </div>
                    
                    <div class="detail-item">
                        <div class="detail-label">工作时间</div>
                        <div class="detail-value">9:00-18:00，周末双休</div>
                    </div>
                    
                    <div class="detail-item">
                        <div class="detail-label">社保公积金</div>
                        <div class="detail-value">五险一金，全额缴纳</div>
                    </div>
                    
                    <div class="detail-item">
                        <div class="detail-label">福利待遇</div>
                        <div class="detail-value">年终奖、股票期权、带薪年假、节日福利、定期团建、免费零食</div>
                    </div>
                    
                    <div class="detail-item">
                        <div class="detail-label">汇报对象</div>
                        <div class="detail-value">技术经理</div>
                    </div>
                </div>
                
                <div class="company-section">
                    <h2 class="section-title">公司信息</h2>
                    
                    <div class="company-intro">
                        <div class="company-photos">
                            <img src="https://picsum.photos/300/200?random=21" alt="公司办公环境" class="company-photo">
                            <img src="https://picsum.photos/300/200?random=22" alt="公司团队活动" class="company-photo">
                            <img src="https://picsum.photos/300/200?random=23" alt="公司产品展示" class="company-photo">
                            <img src="https://picsum.photos/300/200?random=24" alt="公司会议室" class="company-photo">
                        </div>
                        
                        <div class="company-desc">
                            <p>未来科技有限公司成立于2015年，是一家专注于人工智能和大数据领域的高科技企业。公司致力于为企业提供智能化解决方案，帮助客户实现数字化转型。</p>
                            <p>我们拥有一支由行业专家组成的团队，核心成员来自国内外知名高校和企业。公司注重技术创新和人才培养，为员工提供良好的发展平台和福利待遇。</p>
                            
                            <div class="company-stats">
                                <div class="stat-item">
                                    <div class="stat-value">500+</div>
                                    <div class="stat-label">员工</div>
                                </div>
                                <div class="stat-item">
                                    <div class="stat-value">8年</div>
                                    <div class="stat-label">发展历程</div>
                                </div>
                                <div class="stat-item">
                                    <div class="stat-value">20+</div>
                                    <div class="stat-label">城市分布</div>
                                </div>
                                <div class="stat-item">
                                    <div class="stat-value">100+</div>
                                    <div class="stat-label">合作伙伴</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="related-jobs">
                    <h2 class="section-title">相关职位推荐</h2>
                    
                    <div class="related-job-list">
                        <div class="related-job-item">
                            <a href="#" class="related-job-title">Java开发工程师</a>
                            <div class="related-job-meta">
                                <span>未来科技有限公司</span>
                                <span>18k-30k</span>
                                <span>3-5年</span>
                            </div>
                        </div>
                        
                        <div class="related-job-item">
                            <a href="#" class="related-job-title">微服务架构师</a>
                            <div class="related-job-meta">
                                <span>未来科技有限公司</span>
                                <span>35k-50k</span>
                                <span>5-10年</span>
                            </div>
                        </div>
                        
                        <div class="related-job-item">
                            <a href="#" class="related-job-title">数据库开发工程师</a>
                            <div class="related-job-meta">
                                <span>未来科技有限公司</span>
                                <span>25k-40k</span>
                                <span>3-5年</span>
                            </div>
                        </div>
                        
                        <div class="related-job-item">
                            <a href="#" class="related-job-title">DevOps工程师</a>
                            <div class="related-job-meta">
                                <span>未来科技有限公司</span>
                                <span>20k-35k</span>
                                <span>2-4年</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 留言评论区 -->
        <div class="comments-section">
            <div class="comments-header">
                <div class="comments-count">求职者讨论 (24)</div>
                <div class="comment-sort">
                    排序: 
                    <select onchange="sortComments(this.value)">
                        <option value="latest">最新发布</option>
                        <option value="hot">最热讨论</option>
                    </select>
                </div>
            </div>
            
            <!-- 评论输入框 -->
            <div class="comment-form">
                <div class="form-group">
                    <textarea class="comment-input" placeholder="分享你的想法或提问..."></textarea>
                </div>
                <div class="form-actions">
                    <button class="comment-btn" onclick="submitComment()">发表评论</button>
                </div>
            </div>
            
            <!-- 评论列表 -->
            <div class="comments-list">
                <!-- 评论1 -->
                <div class="comment-item">
                    <div class="comment-header">
                        <div class="comment-author">
                            <img src="https://picsum.photos/100/100?random=30" alt="用户头像" class="author-avatar">
                            <div class="author-info">
                                <div class="author-name">张明</div>
                                <div class="comment-time">3天前</div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="comment-content">
                        请问贵公司这个职位主要使用什么技术栈？我有2年Java开发经验，熟悉Spring Boot，但微服务经验不多，请问有机会吗？
                    </div>
                    
                    <div class="comment-actions">
                        <div class="comment-action liked" onclick="toggleLike(this)">
                            <i class="fas fa-thumbs-up"></i>
                            <span>32</span>
                        </div>
                        <div class="comment-action" onclick="showReplyForm(this)">
                            <i class="fas fa-reply"></i>
                            <span>回复</span>
                        </div>
                    </div>
                    
                    <!-- 回复列表 -->
                    <div class="replies">
                        <!-- 回复1 -->
                        <div class="reply-item">
                            <div class="comment-header">
                                <div class="comment-author">
                                    <img src="https://picsum.photos/100/100?random=40" alt="公司HR头像" class="author-avatar">
                                    <div class="author-info">
                                        <div class="author-name">未来科技 HR</div>
                                        <div class="comment-time">2天前</div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="comment-content">
                                <span style="color: var(--primary);">@张明</span> 我们主要技术栈是Java + Spring Cloud微服务体系，还有消息队列、缓存等中间件。你的经验是符合我们基本要求的，微服务经验可以在入职后学习，欢迎投递简历！
                            </div>
                            
                            <div class="comment-actions">
                                <div class="comment-action" onclick="toggleLike(this)">
                                    <i class="far fa-thumbs-up"></i>
                                    <span>15</span>
                                </div>
                                <div class="comment-action" onclick="showReplyForm(this)">
                                    <i class="fas fa-reply"></i>
                                    <span>回复</span>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 回复表单 (默认隐藏) -->
                        <div class="reply-form" style="display: none;">
                            <img src="https://picsum.photos/100/100?random=1" alt="当前用户头像" class="reply-avatar">
                            <div class="reply-input-container">
                                <textarea class="reply-input" placeholder="写下你的回复..."></textarea>
                                <div class="reply-actions">
                                    <button class="cancel-reply" onclick="hideReplyForm(this)">取消</button>
                                    <button class="reply-btn" onclick="submitReply(this)">回复</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 评论2 -->
                <div class="comment-item">
                    <div class="comment-header">
                        <div class="comment-author">
                            <img src="https://picsum.photos/100/100?random=31" alt="用户头像" class="author-avatar">
                            <div class="author-info">
                                <div class="author-name">李华</div>
                                <div class="comment-time">5天前</div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="comment-content">
                        我朋友在这家公司工作，说公司氛围特别好，技术团队很专业，而且福利待遇也不错，推荐大家投递！我已经投了简历，希望能有机会加入。
                    </div>
                    
                    <div class="comment-actions">
                        <div class="comment-action" onclick="toggleLike(this)">
                            <i class="far fa-thumbs-up"></i>
                            <span>48</span>
                        </div>
                        <div class="comment-action" onclick="showReplyForm(this)">
                            <i class="fas fa-reply"></i>
                            <span>回复</span>
                        </div>
                    </div>
                    
                    <!-- 回复列表 -->
                    <div class="replies">
                        <!-- 回复表单 (默认隐藏) -->
                        <div class="reply-form" style="display: none;">
                            <img src="https://picsum.photos/100/100?random=1" alt="当前用户头像" class="reply-avatar">
                            <div class="reply-input-container">
                                <textarea class="reply-input" placeholder="写下你的回复..."></textarea>
                                <div class="reply-actions">
                                    <button class="cancel-reply" onclick="hideReplyForm(this)">取消</button>
                                    <button class="reply-btn" onclick="submitReply(this)">回复</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 评论3 -->
                <div class="comment-item">
                    <div class="comment-header">
                        <div class="comment-author">
                            <img src="https://picsum.photos/100/100?random=32" alt="用户头像" class="author-avatar">
                            <div class="author-info">
                                <div class="author-name">王强</div>
                                <div class="comment-time">1周前</div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="comment-content">
                        请问这个职位的面试流程是怎样的？有几轮面试？技术面主要考察哪些方面呢？
                    </div>
                    
                    <div class="comment-actions">
                        <div class="comment-action" onclick="toggleLike(this)">
                            <i class="far fa-thumbs-up"></i>
                            <span>19</span>
                        </div>
                        <div class="comment-action" onclick="showReplyForm(this)">
                            <i class="fas fa-reply"></i>
                            <span>回复</span>
                        </div>
                    </div>
                    
                    <!-- 回复列表 -->
                    <div class="replies">
                        <!-- 回复1 -->
                        <div class="reply-item">
                            <div class="comment-header">
                                <div class="comment-author">
                                    <img src="https://picsum.photos/100/100?random=41" alt="公司技术负责人头像" class="author-avatar">
                                    <div class="author-info">
                                        <div class="author-name">未来科技 技术负责人</div>
                                        <div class="comment-time">6天前</div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="comment-content">
                                <span style="color: var(--primary);">@王强</span> 我们的面试流程一般是：初筛 -> 技术一面 -> 技术二面 -> HR面，共三轮正式面试。技术面主要考察基础知识、项目经验和解决问题的能力，会有一些实际场景的技术问题。
                            </div>
                            
                            <div class="comment-actions">
                                <div class="comment-action" onclick="toggleLike(this)">
                                    <i class="far fa-thumbs-up"></i>
                                    <span>8</span>
                                </div>
                                <div class="comment-action" onclick="showReplyForm(this)">
                                    <i class="fas fa-reply"></i>
                                    <span>回复</span>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 回复表单 (默认隐藏) -->
                        <div class="reply-form" style="display: none;">
                            <img src="https://picsum.photos/100/100?random=1" alt="当前用户头像" class="reply-avatar">
                            <div class="reply-input-container">
                                <textarea class="reply-input" placeholder="写下你的回复..."></textarea>
                                <div class="reply-actions">
                                    <button class="cancel-reply" onclick="hideReplyForm(this)">取消</button>
                                    <button class="reply-btn" onclick="submitReply(this)">回复</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 分页控件 -->
            <div class="pagination-container">
                <div class="pagination">
                    <button class="page-btn disabled">
                        <i class="fas fa-chevron-left"></i>
                    </button>
                    <button class="page-btn active">1</button>
                    <button class="page-btn">2</button>
                    <button class="page-btn">3</button>
                    <button class="page-btn">
                        <i class="fas fa-chevron-right"></i>
                    </button>
                </div>
            </div>
        </div>
    </div>
    

    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>

        
        // 切换收藏状态
        function toggleCollect(button) {
            const icon = button.querySelector('i');
            const text = button.childNodes[1].textContent.trim();
            
            if (icon.classList.contains('far')) {
                // 未收藏 -> 收藏
                icon.classList.remove('far');
                icon.classList.add('fas');
                button.childNodes[1].textContent = ' 已收藏';
                showToast('职位收藏成功');
            } else {
                // 已收藏 -> 取消收藏
                icon.classList.remove('fas');
                icon.classList.add('far');
                button.childNodes[1].textContent = ' 收藏职位';
                showToast('已取消职位收藏');
            }
        }
        
        // 切换点赞状态
        function toggleLike(element) {
            const icon = element.querySelector('i');
            const countElement = element.querySelector('span');
            let count = parseInt(countElement.textContent);
            
            if (icon.classList.contains('far')) {
                // 未点赞 -> 点赞
                icon.classList.remove('far');
                icon.classList.add('fas');
                element.classList.add('liked');
                countElement.textContent = count + 1;
                showToast('点赞成功');
            } else {
                // 已点赞 -> 取消点赞
                icon.classList.remove('fas');
                icon.classList.add('far');
                element.classList.remove('liked');
                countElement.textContent = count - 1;
                showToast('已取消点赞');
            }
        }
        
        // 显示回复表单
        function showReplyForm(element) {
            // 先隐藏所有回复表单
            document.querySelectorAll('.reply-form').forEach(form => {
                form.style.display = 'none';
            });
            
            // 显示当前评论的回复表单
            const replyForm = element.closest('.comment-item, .reply-item').querySelector('.reply-form');
            replyForm.style.display = 'flex';
            
            // 聚焦到输入框
            replyForm.querySelector('.reply-input').focus();
        }
        
        // 隐藏回复表单
        function hideReplyForm(element) {
            const replyForm = element.closest('.reply-form');
            replyForm.style.display = 'none';
        }
        
        // 提交评论
        function submitComment() {
            const input = document.querySelector('.comment-input');
            const content = input.value.trim();
            
            if (content === '') {
                showToast('请输入评论内容');
                return;
            }
            
            showToast('评论发表成功');
            input.value = '';
            
            // 实际应用中，这里会发送评论到服务器
        }
        
        // 提交回复
        function submitReply(element) {
            const replyForm = element.closest('.reply-form');
            const input = replyForm.querySelector('.reply-input');
            const content = input.value.trim();
            
            if (content === '') {
                showToast('请输入回复内容');
                return;
            }
            
            showToast('回复成功');
            input.value = '';
            replyForm.style.display = 'none';
            
            // 实际应用中，这里会发送回复到服务器
        }
        
        // 排序评论
        function sortComments(type) {
            let sortText = type === 'latest' ? '最新发布' : '最热讨论';
            showToast(`评论已按${sortText}排序`);
            
            // 实际应用中，这里会根据排序类型重新加载评论
        }
    </script>
</body>
</html>
    
